package com.gk.carshopsys.dao;

import com.gk.carshopsys.pojo.SysLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper


public interface SysLogDao {
    @Insert("insert into sys_log(username,operation,time,method,params,ip,create_time) values(#{username},#{operation},#{time},#{method},#{params},#{ip},#{create_time})")
    public void saveSysLog(SysLog syslog);

    @Select("select * from sys_log")
    public List<SysLog> findlog();
}
